package com.my.bbs.controller;

import com.my.bbs.entity.BBSPostCategory;
import com.my.bbs.service.BBSPostCategoryService;
import com.my.bbs.service.BBSPostCollectService;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/checkLog")
public class TestCon {
    @Resource
    private BBSPostCategoryService bbsPostCategoryService;

    @GetMapping("detail/hahahha")
    public List<BBSPostCategory> hahaha() {
        List<BBSPostCategory> bbsPostCategories = bbsPostCategoryService.getBBSPostCategories();
        if (CollectionUtils.isEmpty(bbsPostCategories)) {

        }
        return bbsPostCategories;
    }
}
